using GolSig.Library;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace Test.GolSig.Library.ExtendedCellStatusInfoSpecs
{
    [TestClass]
    public class WhenComparingExtendedCellInfo
    {
        [TestMethod()]
        public void GivenEqualCell_ThenShouldBeEqual()
        {
            ExtendedCellStatusInfo cell1 = new ExtendedCellStatusInfo(true, 1);
            ExtendedCellStatusInfo cell2 = new ExtendedCellStatusInfo(true, 1);
            Assert.IsTrue(cell1.Equals(cell2));
        }
        [TestMethod()]
        public void GivenNotEqualNumberAdjacentLifeCells_ThenShouldBeNotEqual()
        {
            ExtendedCellStatusInfo cell1 = new ExtendedCellStatusInfo(true, 1);
            ExtendedCellStatusInfo cell2 = new ExtendedCellStatusInfo(true, 2);
            Assert.IsFalse(cell1.Equals(cell2));
        }
        [TestMethod()]
        public void GivenNotEqualStatus_ThenShouldBeNotEqual()
        {
            ExtendedCellStatusInfo cell1 = new ExtendedCellStatusInfo(true, 1);
            ExtendedCellStatusInfo cell2 = new ExtendedCellStatusInfo(false, 1);
            Assert.IsFalse(cell1.Equals(cell2));
        }
    }
}
